#ifndef CUSTOMEDIT_H
#define CUSTOMEDIT_H

#include <QLineEdit>

class CustomEdit : public QLineEdit
{
    Q_OBJECT
public:
    CustomEdit(QWidget *parent = nullptr);

    Q_PROPERTY(bool bFocus READ hasFocus NOTIFY focusChanged)
    // QWidget interface
protected:
    void focusInEvent(QFocusEvent *event);
    void focusOutEvent(QFocusEvent *event);
signals:
    void focusChanged();
};

#endif // CUSTOMEDIT_H
